import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    name: 'lihua',
  },
  getters: {
    avatar: state => state.user.avatar,
    name: state => state.user.name,
    roles: state => state.user.roles,
    permissions: state => state.user.permissions,
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    user,
    // permission,
  }
})
